package com.inspur.attendance.Service;

import com.inspur.attendance.Entity.Overtime;
import org.springframework.data.domain.Page;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;

import java.util.List;


public interface OverTimeService {

    public Page<Overtime> getAllOverTime(int pageNo, int pageSize) throws Exception;

    public Page<Overtime> getMyOverTime(int pageNo, int pageSize, String work_id) throws Exception;

    public Overtime findById(Long id) throws Exception;

    public void addOverTime(Overtime overtime) throws Exception;

    public void delOverTime(Long id) throws Exception;

    List<Overtime> MyOvertimeRequest(String id);

    List<Overtime> overtimeRequest(String departmentId);
}
